package com.example.educationalsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.educationalsystem.entity.Course;
import com.example.educationalsystem.entity.Vo.CourseVo;
import com.example.educationalsystem.mapper.ICourseMapper;
import com.example.educationalsystem.service.ICourseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpc
 * @since 2022-12-02
 */
@Service
public class CourseServiceImpl extends ServiceImpl<ICourseMapper, Course> implements ICourseService {

    @Autowired
    private ICourseMapper iCourseMapper;

    @Override
    public List<CourseVo> getAllCourse(){
        return iCourseMapper.getAllCourse();
    }


    @Override
    public Page<CourseVo> getCoursePage(Page<CourseVo> page , Wrapper wrapper)
    {
        return iCourseMapper.getCoursePage(page,wrapper);
    }

}
